package org.rency.crawler.dal.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 描述: 域名池<br>
 * 最近修改时间:2017/12/18 14:19<br>
 *
 * @author CaiyuRen
 * @version V1.0
 * @since 2017/12/18 14:19
 */
@Document(collection = "hostPool")
@CompoundIndexes({
    @CompoundIndex(name = "uidx_name", def = "{'hostNo':1}", unique = true)})
public class HostPoolDO extends BaseDO{

  @Id
  private String id;

  private String hostNo;

  private String hostAddress;

  private String ipv4Address;

  private String ipv6Address;

  private int port;

  private String remark;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getHostNo() {
    return hostNo;
  }

  public void setHostNo(String hostNo) {
    this.hostNo = hostNo;
  }

  public String getHostAddress() {
    return hostAddress;
  }

  public void setHostAddress(String hostAddress) {
    this.hostAddress = hostAddress;
  }

  public String getIpv4Address() {
    return ipv4Address;
  }

  public void setIpv4Address(String ipv4Address) {
    this.ipv4Address = ipv4Address;
  }

  public String getIpv6Address() {
    return ipv6Address;
  }

  public void setIpv6Address(String ipv6Address) {
    this.ipv6Address = ipv6Address;
  }

  public int getPort() {
    return port;
  }

  public void setPort(int port) {
    this.port = port;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }
}
